<header th:fragment="head" class="head-town-con box-shadows relative">
    <div class="layui-header">
        <div class="layui-logo green fb">安亭养老服务平台</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;"><img th:if="not ${#strings.isEmpty(userPhoto)}" style="width:50px;height:50px;"th:src="${userPhoto}" class="layui-nav-img"><img th:if="${#strings.isEmpty(userPhoto)}" th:src="${#request.getContextPath()}+'/static/img/tx.png'" class="layui-nav-img">[[${userName}]]</a>
            </li>
            <li class="layui-nav-item icon-quit">
                <a id="loginOut" href="javascript:void(0)"><img th:src="${#request.getContextPath()}+'/static/img/icon_quit.png'">安全退出</a>
            </li>
        </ul>
    </div>

</header>